﻿using System.Windows.Data;

namespace XYAC.Framework.MonitorTireMaterialOnline.Converters
{
    public class BoolToTextConverter : IValueConverter
    {
        public string TrueValue { get; set; } = "成功";
        public string FalseValue { get; set; } = "失败";
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return (bool)value ? TrueValue : FalseValue;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
